//
//  ViewController.m
//  帮惠管理员
//
//  Created by reew on 2017/10/10.
//  Copyright © 2017年 reew. All rights reserved.
//

#import "ViewController.h"
#import "CommonUtils.h"
#import "System.h"
#import "Admin.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    [self uploadImage];
    
}
- (void)uploadImage{
    NSDictionary *dic1 = @{@"imgPath":@"firstImg.png",@"tagFirst":@"穿着不冷",@"tagSecond":@"脱了不热"};
     NSDictionary *dic2 = @{@"imgPath":@"firstImg.png",@"tagFirst":@"下雪天穿",@"tagSecond":@"冬天必备"};
     NSDictionary *dic3 = @{@"imgPath":@"firstImg.png",@"tagFirst":@"天气寒冷",@"tagSecond":@"穿穿试试"};
    NSArray *gti = @[dic1,dic2,dic3];
    NSString *url = [kBaseURL stringByAppendingPathComponent:kTag_img];
    [CommonUtils sendPOST:url parameters:nil constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {
       
//        formData appendPartWithFileData:<#(nonnull NSData *)#> name:<#(nonnull NSString *)#> fileName:<#(nonnull NSString *)#> mimeType:<#(nonnull NSString *)#>
    } progress:nil success:^(NSURLSessionDataTask *task, id responseObject) {
        
    } failure:^(NSURLSessionDataTask *task, NSError *error) {
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
